<%--
  Created by IntelliJ IDEA.
  User: 陪你度过漫长岁月
  Date: 2022/8/25
  Time: 10:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--登录校验--%>
<script>
    $(function () {
        if (${sessionScope.miname==null}) {
            layui.use('layer', function () {
                var layer = layui.layer;

                layer.open({
                    type: 1,
                    title: '<h3 style="color: red">警告<h3>',
                    area: ['200', '200'],
                    btn: [' 哦 '],
                    btnAlign: 'c',
                    anim: 6,
                    content: '<h1 align="center" style="margin-left: 3px;margin-top: 10px"> 未登录！请自觉！</h1>',
                    shade: [0.5, '#000000'],
                    yes: function () {
                        location.href = "login.jsp";
                    }
                })

            })
        }
    })
</script>
</body>
</html>
